#include<stdio.h>
#include<string.h>

int fun1(int n) {
    int flag = 1;
    if (n < 2) {
        flag = 0;
    }
    else {
        for (int i = 2; i < n; i++) {
            if (n % i == 0) {
                flag = 0;
                return flag;
            }
        }
    }
    return flag;
}

int fun2(char a[], int n, int* max, int* min) {
    int i, j, pmax = 0, pmin = 1000, k;
    for (i = 0; i < n; i++) {
        k = 0;
        for (j = 0; j < n; j++) {
            if (a[i] == a[j]) {
                k++;
            }
        }
        if (k < pmin) {
            pmin = k;
        }
        if (k > pmax) {
            pmax = k;
        }

    }
    *max = pmax;
    *min = pmin;
}
int main() {
    char a[101];
    fgets(a, sizeof(a), stdin);
    int n = strlen(a);
    int max = 0, min = 0;
    fun2(a, n, &max, &min);
    int x = fun1(max - min);
    //printf("%d %d", max, min);
    if (x == 1) {
        printf("Lucky\n%d", max - min);
    }
    else {
        printf("No Answer\n0");
    }
    return 0;
}